package com.cxso.example.sdk.http.core;


import com.cxso.example.sdk.http.base.ClientInfo;

public class ChoiceClient {

    private final ClientInfo clientInfo;

    public ChoiceClient(ClientInfo clientInfo) {
        this.clientInfo = clientInfo;
    }

    public ExecuteClient choice(String productClientId) {
        LoginClient loginClient = new LoginClient(this.clientInfo);
        this.clientInfo.setProductClientId(productClientId);
        return loginClient.login(clientInfo, "/v4/api/auth/authorize", clientInfo.getClientId(), clientInfo.getClientSecret());
    }

}
